//package cn.chinaflame.pagodas.web;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import cn.chinaflame.pagodas.Result.Result;
//import cn.chinaflame.pagodas.dto.AgentDto;
//import cn.chinaflame.pagodas.req.AgentReq;
//import cn.chinaflame.pagodas.service.LoginService;
///**
//* @author    created by lbq
//* @date	     2018年1月4日 下午2:31:09
//**/
//@RestController
//@RequestMapping(value = "/openapi/v1/pagodas/agent/")
//public class LoginAPI {
//	private static final Logger log = LoggerFactory.getLogger(LoginAPI.class);
//
//	@Autowired
//	private LoginService loginService;
//	
//	@PostMapping(value = "login")
//	public Object login(String phone, String password) {
//		log.info("代理登录接口手机号phone:{},password:{}",phone,password);
//		AgentDto dto = loginService.login(phone, password);
//		return Result.create(dto);
//	}
//	@PostMapping(value = "regist")
//	public Object regist(@RequestBody AgentReq req) {
//		log.info("注册代理的参数为req:{}",req);
//		AgentDto dto= loginService.registe(req);
//		return Result.create(dto);
//	}
//}
